SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 46728: EMF graphs created with File ► Export as Image in SAS® 9.3 are much larger and cannot be edited in Microsoft Word

DetailsAboutRate It
Prior to SAS® 9.3, an EMF graph written to disk by selecting FileExport as Image in the SAS windowing environment is a vector-based graph that is fairly small in size. However, exporting the EMF graph to disk using the same technique in SAS 9.3 creates a bitmap image file that is very large in size. For example, selecting FileExport as Image in SAS® 9.2 might create a 127K EMF file. The same technique in SAS 9.3 might create a 2960K EMF file.

Since the EMF graphs that SAS 9.3 creates are bitmap image files, these graphs cannot be edited in Microsoft Word. If you try to edit the SAS 9.3 EMF graph in Word, you will see a blank screen after selecting Edit Picture and converting the graph to a Microsoft Office drawing object.

Currently, the only way to circumvent the problem is to use SAS code to write an EMF file directly to disk. You can do this using the EMF device driver as shown below:

ods _all_ close; 
ods listing; 

filename grafout 'c:\temp\sastest.emf'; 

goptions reset=goptions device=EMF gsfname=grafout
         gsfmode=replace; 

/* Your graph procedure code goes here */

You can also use the SASEMF device driver as shown below:

ods _all_ close; 
ods listing; 

filename grafout 'c:\temp\sastest.emf'; 

goptions reset=goptions device=SASEMF gsfname=grafout
         gsfmode=replace;

/* Your graph procedure code goes here */


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/GRAPHWindows Vista for x649.3 TS1M09.4 TS1M0
Windows Vista9.3 TS1M09.4 TS1M0
Windows 7 Ultimate 32 bit9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M0
Windows 7 Professional x649.3 TS1M0
Windows 7 Professional 32 bit9.3 TS1M0
Windows 7 Home Premium 32 bit9.3 TS1M0
Windows 7 Home Premium x649.3 TS1M0
Windows 7 Enterprise x649.3 TS1M0
Windows 7 Enterprise 32 bit9.3 TS1M0
Microsoft Windows XP Professional9.3 TS1M09.4 TS1M0
Microsoft Windows Server 20089.3 TS1M09.4 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 for x649.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M09.4 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M09.4 TS1M0
Microsoft® Windows® for x649.3 TS1M09.4 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.